package com.ninthgroup.mapper;

import com.ninthgroup.entity.Scheduling;

import java.util.List;

public interface SchedulingMapper {
    int deleteByPrimaryKey(Integer sId);

    int insert(Scheduling record);

    int insertSelective(Scheduling record);

    Scheduling selectByPrimaryKey(Integer sId);


    List<Scheduling> selectByDid(Integer sDid);

    int updateByPrimaryKeySelective(Scheduling record);

    int updateByPrimaryKey(Scheduling record);

    /**
     * @param
     * @return java.util.List<com.ninthgroup.entity.Scheduling>
     * @create by: 1452863884@qq.com rcg
     * @description:查到所有排班完的医生
     * @create time: 2022/10/20 16:08
     */
    List<Scheduling> selectAllSchedulingDoctor();


    /**
     * fetch data by show
     * @create by: 1452863884@qq.com rcg
     * @description:通过时间查询
     * @create time: 2022/10/27 21:30
     * @param sdate
     * @return com.ninthgroup.entity.Scheduling
     */
    Scheduling lessNum(String sdate);

}